import request from '@/utils/request'
// 请求部门列表
export function inquireDepartment() {
  return request({
    url: '/company/department',
    method: 'get'

  })
}
// 删除部门
export function delDepartmentApi(id) {
  return request({
    url: '/company/department/' + id,
    method: 'DELETE'

  })
}
// 添加部门
export function addDepartmentApi(data) {
  return request({
    url: '/company/department',
    method: 'post',
    data
  })
}
// 修改部门
export function reviseDepartmentApi(data) {
  return request({
    url: '/company/department/' + data.id,
    method: 'put',
    data
  })
}
// 查询部门
export function getDepartmentApi(id) {
  return request({
    url: '/company/department/' + id,
    method: 'get'
  })
}
